﻿#include "motor.h"

Motor::Motor()
{

}

int Motor::mode() const
{
    return m_mode;
}

void Motor::setMode(int mode)
{
    m_mode = mode;
}

int Motor::state() const
{
    return m_state;
}

void Motor::setState(int state)
{
    m_state = state;
}

int Motor::ioInput() const
{
    return m_ioInput;
}

void Motor::setIoInput(int ioInput)
{
    m_ioInput = ioInput;
}

int Motor::limitSpos() const
{
    return m_limitSpos;
}

void Motor::setLimitSpos(int limitSpos)
{
    m_limitSpos = limitSpos;
}

int Motor::errcode() const
{
    return m_errcode;
}

void Motor::setErrcode(int errcode)
{
    m_errcode = errcode;
}

float Motor::trip() const
{
    return m_trip;
}

void Motor::setTrip(float trip)
{
    m_trip = trip;
}

float Motor::speed() const
{
    return m_speed;
}

void Motor::setSpeed(float speed)
{
    m_speed = speed;
}

float Motor::ei() const
{
    return m_ei;
}

void Motor::setEi(float ei)
{
    m_ei = ei;
}

float Motor::power() const
{
    return m_power;
}

void Motor::setPower(float power)
{
    m_power = power;
}

int Motor::workMode() const
{
    return m_workMode;
}

void Motor::setWorkMode(int workMode)
{
    m_workMode = workMode;
}


